﻿@using VirtualPress.Infrastructure.Entities.Entity;
@using VirtualPress.Infrastructure.Entities.Enum;
@{
    ViewBag.Title = "MyJournals";
}
<div id="content-header">
    <h1>
        我的期刊</h1>
</div>
<div id="breadcrumb">
    <a href="/WorkSpace/member/index" class="tip-bottom"><i class="icon-home"></i>起始页</a> <a href="javascript:">
        个人中心</a> <a href="javascript:" class="current">我的期刊</a>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="alert alert-info">
                <button type="button" class="close" data-dismiss="alert">
                    &times;</button>
                <strong>提示！</strong> "我的期刊"中收集了您投过稿与您关注的所有期刊，您可以在这里快速的找到感兴趣的期刊进行投稿！
            </div>
            <div class="widget-box">
                <div class="widget-title">
                    <span class="icon"><i class="icon-th-list"></i></span>
                    <h5>
                        缴费通知</h5>
                    <div class="buttons" style="margin-right: 15px;">
                    </div>
                </div>
                <div class="widget-content nopadding">
                    <table class="table table-bordered">
                        <thead>
                            <tr style="cursor: pointer;">
                                <th>
                                    期刊名称
                                </th>
                                <th style="width: 20%">
                                    期刊领域
                                </th>
                                <th style="width: 15%">
                                    投稿数
                                </th>
                                <th style="width: 10%">
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            @{
                                ItemListBox<Favour> data = ViewBag.Data;
                                if (data != null && data.Data.Any())
                                {
                                    foreach (var item in data.Data)
                                    {
                                <tr>
                                    <td>
                                        <a href="#" title="点击访问期刊">@item.JournalName</a>
                                    </td>
                                    <td style="text-align: center">
                                        @item.IndType.Mapping()
                                    </td>
                                    <td style="text-align: center">
                                        @item.ArticleNum 篇
                                    </td>
                                    <td style="text-align: center">
                                        <a href="/WorkSpace/member/Contribute?journal=@item.JournalId" class="btn btn-primary btn-mini">
                                            投稿</a>
                                    </td>
                                </tr>
                                    }
                                }
                            }
                        </tbody>
                    </table>
                </div>
                @Html.Raw(data.PageItemSegment)
            </div>
        </div>
    </div>
</div>
@section tail{
    <script type="text/javascript">
        $(function () {
            $('#likSelf').addClass('active open');
        });
    </script>
}
